package com.example.administrator.stargo.fragment;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.stargo.R;
import com.example.administrator.stargo.activity.Main2Activity;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * User:Shine
 * Date:2015-10-20
 * Description:
 */
public class HomeFragment extends BaseFragment {

    @BindView(R.id.tv_home)
    TextView tv_home;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main2;
    }

    @Override
    protected void initView() {
        super.initView();

        tv_home.setText("StatGo   Gogogogogogog");
    }

    @OnClick({R.id.tv_home})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.tv_home:
                Intent intent = new Intent(getActivity(), Main2Activity.class);
                startActivity(intent);
                break;
        }
    }
    @Override
    public void onSuccess(int action, String res) {

    }
}
